package com.wo.cloud.mybatis.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/4/11 17:11
 * Description:
 */

@Data
@RefreshScope
// 启动时校验参数
@Validated
@ConfigurationProperties(prefix = "mybatis.tenant")
public class MybatisPlusConfigProperties {

    // 默认不开启租户配置(false)
    private Boolean enableTenant = Boolean.FALSE;
}
